package semant.second_pass;

import semant.Env;
import syntaxtree.Formal;
import syntaxtree.VisitorAdapter;

final class FormalHandler extends VisitorAdapter {

    private Env env;

    private FormalHandler(Env e){
	super();
	env = e;
    }

    static void secondPass(Env e, Formal f){
	FormalHandler h = new FormalHandler(e);
	f.accept(h);
    }

    public void visit(Formal node){
	TypeHandler.secondPass(env, node.type);
    }

}
